import { default as request, cloud } from '@/framework/utils/request'

/**
 * 新增企业认证基本信息数据
 */
export function addEnterprise(data) {
  return request({
    url: `${cloud.business}/enterpriseSupply/addEnterprise`,
    method: 'post',
    data
  })
}

/**
 * 新增企业认证基本信息数据
 */
export function getSupplyBasePage(params) {
  return request({
    url: `${cloud.business}/enterpriseSupply/getSupplyBasePage`,
    method: 'get',
    params
  })
}

/**
 * 获取企业认证信息详情
 */
export function getSupplyDetail(params) {
  return request({
    url: `${cloud.business}/enterpriseSupply/getSupplyDetail`,
    method: 'get',
    params
  })
}

/**
 * 获取企业认证基本信息单条数据详情
 */
export function getSupplyBaseDetail(params) {
  return request({
    url: `${cloud.business}/enterpriseSupply/getSupplyBaseDetail`,
    method: 'get',
    params
  })
}

/**
 * 获取企业认证基本信息单条数据详情
 */
export function getSystemResult(enterpriseId) {
  return request({
    url: `${cloud.business}/enterpriseSupply/getSystemResult`,
    method: 'get',
    params: {
      enterpriseId
    }
  })
}

/**
 * 识别图片信息
 */
export function recognition(params) {
  return request({
    url: `${cloud.business}/enterpriseSupply/recognitionInfo`,
    method: 'get',
    params
  })
}

/**
 * 查询企业系统认证信息所有数据
 */
export function getTabPage(params) {
  return request({
    url: `${cloud.business}/enterpriseSystemSupply/list`,
    method: 'get',
    params
  })
}

/**
 * 新增企业认证信息
 */
export function addEnterpriseSupply(data) {
  return request({
    url: `${cloud.business}/enterpriseSupply/addEnterpriseSupply`,
    method: 'post',
    data
  })
}

/**
 * 修改企业认证信息
 */
export function editEnterpriseSupply(data) {
  return request({
    url: `${cloud.business}/enterpriseSupply/editEnterpriseSupply`,
    method: 'post',
    data
  })
}
